Problem Note 37590: Excel executable continues to run after a scheduled job has ended
When a scheduled job executes using Microsoft Excel, you might find that the Excel executable is still running in the background after the job has finished. This problem will most likely occur after scheduling a job using the SAS® Add-in for Microsoft Office 2.1.0.1009 or later (hot fix 21AMO11 or later).
To circumvent this problem, you can set a configuration option that will end the Excel.exe after the scheduled job has finished. To set this option, follow these steps:
- Close all Microsoft Office applications on the client machine.
- Create a file named
SAS.OfficeAddin.dll.config
, if it does not already exist, and place it in the installation location of the SAS Add-In.
For release 2.1, the default location is:
<drive>:\Program Files\SAS\Add-In for Microsoft Office\
For release 4.2, the default location is:
<drive>:\Program Files\SAS\Add-InforMicrosoftOffice\4.2\
- Edit the
SAS.OfficeAddin.dll.config
as described next. If this is a new file, add the following
lines:
<configuration>
<assemblySettings>
<add key="ForceGarbageCollection" value="true"/>
</assemblySettings>
</configuration>
If this file already exists, then add a key
line to the existing file inside the assemblySettings
tag:
<add key="ForceGarbageCollection" value="true"/>
- Save the file.
Now, when you run a scheduled job, the Excel application will close when the job ends.
Operating System and Release Information
SAS System | SAS Add-in for Microsoft Office | Windows Millennium Edition (Me) | 2.1 | | | |
Microsoft Windows XP Professional | 2.1 | 4.2 | | 9.2 TS2M0 |
Microsoft Windows Server 2008 | 2.1 | | | |
Microsoft Windows Server 2003 Standard Edition | 2.1 | 4.2 | | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 2.1 | 4.2 | | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter Edition | 2.1 | 4.2 | | 9.2 TS2M0 |
Microsoft Windows 2000 Server | 2.1 | | | |
Microsoft Windows 2000 Datacenter Server | 2.1 | | | |
Microsoft Windows 95/98 | 2.1 | | | |
Microsoft Windows NT Workstation | 2.1 | | | |
Microsoft Windows 2000 Professional | 2.1 | | | |
Microsoft Windows 2000 Advanced Server | 2.1 | | | |
Microsoft Windows 7 | 2.1 | | | |
Windows Vista | 2.1 | 4.2 | | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2009-11-03 12:28:59 |
Date Created: | 2009-10-26 15:01:21 |